package modelimplementation


type SalesReceipt struct{
	itsSaleDate DateTime
	itsAmount float32
}

func(s *SalesReceipt) NewSalesReceipt(saleDate DateTime, amount float32) *SalesReceipt{
	s.itsSaleDate = saleDate
	s.itsAmount = amount
	return s
}

func(s *SalesReceipt) GetAmount() float32{
	return s.itsAmount
}

func(s *SalesReceipt) GetSaleDate() DateTime{
	return s.itsSaleDate
}
